<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>管理后台</title>
<head th:include="amazeui/include :: header"></head>
<body data-type="index">
    <div class="am-g tpl-g">
        <!-- 头部 -->
        <header th:include="amazeui/menu :: header"> </header>
        <!-- 风格切换 -->
        <div th:include="amazeui/menu :: skiner"> </div>
        <!-- 侧边导航栏 -->
        <div th:include="amazeui/menu :: menuList"></div>

        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">
        	<iframe class="iframe_class" id="iframe_id" name="iframe_name" frameborder="0" scrolling="no" src="main" style="width:100%;min-height:800px;background-color:#ffffff">
			
			</iframe>
        </div>
    </div>
	<div th:include="amazeui/include :: footer"></div>

<script type="text/javascript">
	function reinitIframe(){
	var iframe = document.getElementById("iframe_id");
	try{
			var bHeight = iframe.contentWindow.document.body.scrollHeight;
			var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
			var height = Math.max(bHeight, dHeight);
			iframe.height = height;
			//console.log(height);
		}catch (ex){}
		}
	window.setInterval("reinitIframe()", 1000);
</script>
</body>

</html>